import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import common from './modules/common'
import user from './modules/user.js';
import config from './modules/config.js';

export default new Vuex.Store({
  modules: {
    common,
    user,
    config
  },
  getters: {
    permissions: state => state.user.permissions,
  }
})